home *** CD-ROM | disk | FTP | other *** search
/ Hot Skins / Hot Skins.iso / pc / demo / mtb30anm.sbk (.txt) < prev    next >
Asymetrix ToolBook File  |  1995-02-27  |  61KB  |  599 lines

  1. Arial
  2. Jeffrey Ayars
  3. info_LastSavedBy
  4. 1/25/95 11:30:33 AM
  5. info_LastSaved
  6. Jeffrey Ayars
  7. Jeffrey Ayars
  8. 1/25/95 11:30:23 AM
  9. Animation Runtime SysBook
  10. 9411011714178865372342
  11. VBNBNB
  12. UL1 <
  13. setUpDlls
  14. linkSysbook
  15. the mmSystem DLL did not link properly
  16. timeGetTime
  17. a_timeGetTime
  18. oUcleanShutdown
  19. mmSystem.dll
  20. setUpDlls
  21. 1,    "V
  22. Removing animation sysBook because
  23. mtb30anm.sbk
  24. cleanShutdown
  25. ,%H.%
  26. ,%H.%
  27. 1+U!8
  28. ,%H.%
  29. ,%H.%
  30. s_anim_animationCache
  31. }gyieldApp
  32. ZstopAnimation
  33. s_anim_idleAnimations
  34. }playStep
  35. objectAnimation
  36. Reset by play command
  37. YdoneAnimatingNotify
  38. theTarget
  39. 9a_timeGetTime
  40. _stopAnimTimer
  41. startAnimTimer
  42. aborted by the user
  43. playAnimation
  44. 1,    "V
  45. s_anim_animationCache
  46. _stopAnimTimer
  47. s_anim_idleAnimations
  48. YdoneAnimatingNotify
  49. notifyObj
  50. stopAnimation
  51. 1+U!8
  52. Author
  53. objectAnimation
  54. updateCel
  55. jumpToStep
  56. whichStep
  57. Author
  58. objectAnimation
  59. updateCel
  60. jumpToPercent
  61. s_anim_animationCache
  62. successful
  63. ZstopAnimation
  64. 9a_timeGetTime
  65. updateCel
  66. playStep
  67. 1+U!!
  68. 1+U!8
  69. updateCel
  70. doneAnimatingNotify
  71. jumpToStep
  72. currentAnimation
  73. currentObject
  74. restoreAnimation
  75. .&+    +E
  76. ,%H.%
  77. s_anim_animationCache
  78. _stopAnimTimer
  79. s_anim_idleAnimations
  80. ZstopAnimation
  81. restoreAnimation
  82. aborted by the user
  83. default
  84. closeAllAnimations
  85. anim_animationSettings
  86. objectAnimation
  87. anim_animationSettings
  88. anim_animationSettings
  89. objectAnimation
  90. 1,    "V
  91. s_anim_idleAnimations
  92. animationCacheEntry
  93. s_anim_animationCache
  94. ULanimationCacheEntry
  95. anim_Offset
  96. s_anim_animationCache
  97. ULanimationCacheEntry
  98. anim_Offset
  99. s_anim_animationCache
  100. ULanimationCacheEntry
  101. anim_CurrentStep
  102. s_anim_animationCache
  103. ULanimationCacheEntry
  104. anim_CurrentStep
  105. s_anim_animationCache
  106. objectAnimation
  107. ULanimationCacheEntry
  108. whichAnimation
  109. anim_NumRepetitions
  110. s_anim_animationCache
  111. objectAnimation
  112. ULanimationCacheEntry
  113. whichAnimation
  114. objectAnimation
  115. anim_NumRepetitions
  116. s_anim_animationCache
  117. objectAnimation
  118. ULanimationCacheEntry
  119. whichAnimation
  120. anim_CelAnimation
  121. s_anim_animationCache
  122. objectAnimation
  123. ULanimationCacheEntry
  124. whichAnimation
  125. objectAnimation
  126. anim_CelAnimation
  127. s_anim_animationCache
  128. objectAnimation
  129. ULanimationCacheEntry
  130. anim_ShowAllSteps
  131. s_anim_animationCache
  132. objectAnimation
  133. ULanimationCacheEntry
  134. objectAnimation
  135. anim_ShowAllSteps
  136. s_anim_animationCache
  137. objectAnimation
  138. ULanimationCacheEntry
  139. anim_Duration
  140. s_anim_animationCache
  141. objectAnimation
  142. ULanimationCacheEntry
  143. objectAnimation
  144. anim_Duration
  145. s_anim_animationCache
  146. objectAnimation
  147. ULanimationCacheEntry
  148. anim_NumSteps
  149. s_anim_animationCache
  150. objectAnimation
  151. ULanimationCacheEntry
  152. objectAnimation
  153. anim_NumSteps
  154. s_anim_animationCache
  155. objectAnimation
  156. ULanimationCacheEntry
  157. anim_StepsPerCell
  158. s_anim_animationCache
  159. objectAnimation
  160. ULanimationCacheEntry
  161. objectAnimation
  162. anim_StepsPerCell
  163. objectAnimation
  164. anim_StartPosition
  165. objectAnimation
  166. objectAnimation
  167. anim_StartPosition
  168. objectAnimation
  169. anim_StartSize
  170. objectAnimation
  171. anim_EndSize
  172. s_anim_animationCache
  173. ULanimationCacheEntry
  174. anim_StartTime
  175. s_anim_animationCache
  176. ULanimationCacheEntry
  177. 9a_timeGetTime
  178. anim_elapsedTime
  179. 9a_timeGetTime
  180. anim_currentTime
  181. ,%H.%
  182. ,%H.%
  183. s_anim_animationCache
  184. ZstopAnimation
  185. s_anim_idleAnimations
  186. whatAnim
  187. }playStep
  188. _stopAnimTimer
  189. aborted by the user
  190. updateAnimations
  191. updateAnimations
  192. animTimerID
  193. animTimer
  194. SetTimer
  195. anim_setTimer
  196. KillTimer
  197. anim_killTimer
  198. zIanim_setTimer
  199. Could not setup animation, no animations will play.
  200. animTimer
  201. animTimer
  202. closeAllAnimations
  203. animTimerID
  204. startAnimTimer
  205. Rlanim_killTimer
  206. animTimer
  207. animTimerID
  208. stopAnimTimer
  209. st,none,1,
  210. --    SYSTEM message handlers related 
  211. animations
  212. linkSysbook
  213. setUpDlls
  214. --    These 
  215. [are helper functions 
  216. startup            --
  217.     LOCAL LOGICAL sysSuspendState
  218. use instead 
  219. getTickCount()
  220.     -- IT's more accurate 
  221. calculating durations
  222.     linkDLL "mmSystem.dll"
  223.         DWORD a_timeGetTime=
  224. r<> NULL 
  225. cleanShutdown "the 
  226. Tdid 
  227. ` properly"
  228. DLLs aren't linked succesfully
  229. [errorString
  230. "Removing 
  231.  sysBook because"&&
  232. G&"."
  233. ~("mtb30anm.sbk",
  234. IT <> 0 
  235. scripts 
  236. playing 
  237. playAnimation 
  238. , notifyObject, waitTillDone
  239. s_anim_idleAnimations,s_anim_animationCache[][]
  240. animationSettings[]
  241. 6 = 1
  242. only 
  243. which actually have 
  244. S = objectAnimation(
  245. dimensions(
  246. }) = 0
  247.     theTarget = 
  248. ) = 0
  249. startAnimTimer
  250. IT's already being animated on 
  251. Fstop 
  252. restart
  253. IT <> 
  254. IT = 
  255. he[i][3] <> 
  256. doneAnimatingNotify "Reset 
  257. he[i][12]
  258.         animCount = 
  259. ns = 
  260.             -- i 
  261. igger than 
  262.             -- 
  263. going 
  264. ns = 
  265. he[i][1] = 
  266. ()            --StartTime
  267. he[i][2] = 0
  268. --CurrentStep
  269. he[i][3] = 
  270. he[i][j] = 
  271. he[i][12] = 
  272. starting point 
  273.     lockScreen 
  274. e= TRUE
  275. he[i][6]
  276. he[i][4]
  277. e= FALSE
  278.         -- finish 
  279. 4continuing
  280. IT <> 
  281. playStep j 
  282. he[j][12]
  283. yieldApp()
  284. (sysMediaBreakKey) = 
  285. IT <> 
  286. stopAnimation "aborted 
  287. user" 
  288. he[i][12]
  289. ns = 
  290.         -- potential infinite loop (
  291. reps=forever) unless 
  292. s presses Escape key 
  293. ns) = 0
  294. stopAnimTimer
  295. -- stops 
  296.  "During Idle" 
  297. Hremoving IT 
  298. status
  299. he[][]
  300. IT > 1
  301. IT <> 0 
  302. IT <> 0 
  303.             IT = 0
  304. IT <> 0
  305. ns = 
  306. he[IT][1] = 0
  307. he[IT][3]    --
  308. he[IT][12]
  309. there 
  310. animating 
  311. ns <> 
  312. entries 
  313. i > IT 
  314. IT = 0
  315. -- lets users specify a 
  316. jumpToStep whichStep, whichAnimation
  317. " = 1
  318. ) > 0
  319. } = 0
  320.  < 0 
  321. )*4-3 
  322. ~= "Author" 
  323. fake out 
  324. moved/sized 
  325. tempSuspendMessages = sysSuspendMessages
  326. >= IT
  327. updateCel 
  328. a percent 
  329.  path length 
  330. jumpToPercent percentComplete, 
  331. ) > 0
  332.  < 0 
  333. +1)*4-3 
  334. +1)*4 
  335.             -- 
  336. >= IT
  337.             -- 
  338. -- plays 
  339. -- called 
  340. "Without Yielding" 
  341. currentAnimation
  342. he[][]
  343. theTickCount,
  344. StepNumber,celNumber
  345.     IT should be on
  346. what 
  347. been covered 
  348. Hnow?
  349. %complete = [elapsed 
  350. Isince 
  351.  selected 
  352. mSec]
  353. ][1])/
  354. ][8]/1000
  355. ][9])
  356. ][5] 
  357. ][2] + 1
  358.  screen so 
  359.  happen simultaneously
  360.     ls = 
  361.  >= (
  362. ][9]*
  363. ][7]) 
  364. ][7] <> 0
  365.             -- IT's 
  366. past 
  367.             -- 
  368. ][9] * 4 + 1
  369. IT + 3 
  370. ][10]
  371. >= IT
  372.             -- 
  373. fbuilt-
  374. ][11],
  375. ][9],
  376.             -- 
  377. queue 
  378. IT's on its 
  379. successful" 
  380.             -- 
  381. specified
  382. ][9]) -- 
  383. (IT+1)*4-3 
  384. (IT+1)*4 
  385. ][10]
  386. >= IT
  387.             -- 
  388. ][11],
  389.             -- 
  390.  currentStep
  391. ][2] = 
  392. e= ls
  393. -- hides 
  394. shows 
  395. , StepsPerCel, 
  396. previousStepNumber
  397. CelNumberToShow,CelNumberToHide,CelCount
  398. < so that 
  399.     -- (
  400. 0 corresponds 
  401.     -- calculate 
  402. fregards 
  403.  setting
  404.  -- so 
  405.  always starts 
  406. ) -- total Cels 
  407.  = 0 
  408.         -- i.e. n 
  409. kn = 0 
  410. Mwe want 
  411.         -- 
  412. shown
  413.  -- so 
  414.  = 0 
  415.             -- i.e. n 
  416. kn = 0 
  417.         -- assume 
  418.  = 1 
  419. ,whatObject
  420.     -- traps 
  421. so no 
  422. generated 
  423. sent 
  424. }without 
  425. -- sends 
  426. sition
  427. -- can be 
  428. fa list 
  429. restoreAnimation objectList, animationList
  430. e) > 0
  431. currentObject
  432. closeAllAnimations
  433. he[][]
  434. isOpen 
  435. he[i][12]
  436. he[i][12]
  437. he[i][12]
  438. default
  439. --    these 
  440. utilities getting 
  441.  a single 
  442.  rowNum
  443. settingsTable[][], 
  444.     ss = 
  445. . = anim_animationSettings 
  446. n = 1
  447. ][1] <> 
  448. i] = 
  449. 14] = 
  450.     ss = 
  451. 14]][i] = 
  452. 1][i] = 
  453. working 
  454. outside 
  455. editor interface
  456. animationCacheEntry 
  457. IT > 1
  458. IT <> 0 
  459. IT <> 0 
  460.             IT = 0
  461. -- Run 
  462.  Properties
  463. anim_Offset
  464. he[][]
  465. IT = 0
  466. he[IT][6]
  467. value
  468. he[][]
  469. IT <> 0 
  470. isType(POINT, 
  471. he[IT][6] = 
  472. r= -1
  473. anim_CurrentStep
  474. he[][]
  475. IT = 0
  476. he[IT][2]
  477. he[][]
  478. IT <> 0 
  479. he[IT][2] = 
  480. -- Persistent 
  481. anim_NumRepetitions
  482. he[][]
  483. IT = 0
  484. ) > 0
  485. he[IT][7]
  486. he[][]
  487. IT <> 0 
  488. he[IT][7] = 
  489. ) > 0
  490. 7] = 
  491. anim_CelAnimation
  492. he[][]
  493. IT = 0
  494. ) > 0
  495. he[IT][4]
  496. he[][]
  497. IT <> 0 
  498. | ", 
  499. he[IT][4] = 
  500. ) > 0
  501. 4] = 
  502. anim_ShowAllSteps 
  503. he[][]
  504. IT = 0
  505. ) > 0
  506. he[IT][5]
  507. he[][]
  508. IT <> 0 
  509. he[IT][5] = 
  510. ) > 0
  511. 5] = 
  512. anim_Duration 
  513. he[][]
  514. IT = 0
  515.   ) > 0
  516. k he[IT][8]
  517.  he[][]
  518. IT <> 0 
  519. k"", 
  520.  he[IT][8] = 
  521.  ) > 0
  522.  8] = 
  523. anim_NumSteps 
  524. B!he[][]
  525. IT = 0
  526. d!) > 0
  527. !he[IT][9]
  528. !he[][]
  529. IT <> 0 
  530. "he[IT][9] = 
  531. ") > 0
  532. )"9] = 
  533. anim_StepsPerCell 
  534. "he[][]
  535. IT = 0
  536. ") > 0
  537. "he[IT][11]
  538. #he[][]
  539. IT <> 0 
  540. X#he[IT][11] = 
  541. i#) > 0
  542. t#11] = 
  543. anim_StartPosition 
  544. #) > 0
  545. ($) > 0
  546. 3$6] = 
  547. -- Read Only (persistent)
  548. anim_StartSize 
  549. $) > 0
  550. anim_EndSize 
  551. %) > 0
  552. anim_StartTime
  553. u%he[][]
  554. IT = 0
  555. %he[IT][1]
  556. anim_elapsedTime
  557. %he[][]
  558. IT = 0
  559. '() - 
  560. &he[IT][1]
  561. anim_currentTime
  562. ^% stuff
  563. updateAnimations
  564. y&ns, 
  565. j&he[][]
  566. whatAnim = 
  567. &he[i][12]
  568. 'ns) > 0
  569. $'ns)
  570. :'he[i][12]
  571. U'he[i][12]
  572. 'ns) = 0
  573. animTimer whatHandle, whatMsg, wparam
  574. *animTimerID, 
  575. "USER"
  576.         INT     anim_setTimer =        SetTimer        (
  577. 0killTimer =    KillTimer        (
  578. = 4843
  579. `(sysClientHandle,
  580. ,20,0)         
  581. ("Could 
  582. xsetup 
  583. +, no 
  584. + will 
  585. N).")
  586.     translateWindowMessage 
  587.         0x001F     
  588.         0x0113     
  589. anim_killTimer(
  590.     untranslateWindowMessage 0
  591. he[][]
  592. IT <> 0 
  593. he[IT][7] = 
  594. ) > 0
  595. 7] = 
  596. anim_CelAnimation
  597. he[][]
  598. IT = 0
  599.